from DrissionPage import ChromiumPage, ChromiumOptions


def page_get(local_port=9654, user_data_path=r'C:\ChromeData_揽收预警'):
    co = ChromiumOptions()
    co.set_paths(local_port=local_port, user_data_path=user_data_path)
    # co.headless()
    page = ChromiumPage(co)
    return page
